package designpattern.singleton;

/**
 * 客户端测试代码
 */
public class Client {
    public static void init(){
        new JdbcConnection();
        new OdbcConnection();
    }
    public static void main(String[] args) {
        init();
        Connection connection=DBFactory.getConnection("jdbc");
        connection.update();
    }
}
